package com.shengyin.ec.model.dao.account;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.shengyin.ec.model.dao.BaseDao;
import com.shengyin.ec.model.dao.BaseDaoImpl;
import com.shengyin.ec.model.entity.Favoriten;

@Repository("favoritenDao")
public class FavoritenDaoImpl extends BaseDaoImpl<Favoriten> implements FavoritenDao {
	
	@Override
	public List<Favoriten> getFavoritenByUserId(long id){
		List<Favoriten> favoritenList = super.find("from Favoriten f where f.userId='"+id+"'");
		
		return favoritenList;
	}
}